

all: libbmp.so libjpg.so
	arm-linux-gcc main.c LCD/lcd.c -I LCD/ -ldl

libbmp.so:
	arm-linux-gcc -shared -fPIC -o libbmp.so BMP/bmp.c LCD/lcd.c -I LCD/

libjpg.so:
	arm-linux-gcc -shared -fPIC -o libjpg.so JPEG/jpg.c LCD/lcd.c -L JPEG/jpeg-9d/build/lib/ -ljpeg -I JPEG/jpeg-9d/build/include/ -I LCD/

clean:
	rm lib*.so a.out